package com.game.centerserver.service;

import com.game.centerserver.common.Result;
import com.game.centerserver.infrastructure.entity.User;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: tian
 * @Date: 2024/11/18/16:54
 * @Description:
 */
public interface UserServiceService {

    /**
     * 用户登录功能
     * @param iphoneNumber
     * @param password
     * @return
     */
    Result doLogin(String iphoneNumber, String password);

    /**
     * 用户注册功能
     * @param iphoneNumber
     * @param password
     * @return
     */
    Result register(String iphoneNumber, String password);


    /**
     * 用户退出登录
     * @return
     */
    Result logout();

    /**
     * 通过uid查询用户信息
     * @param uid
     * @return
     */
    User queryUserByUid(String uid);

    /**
     * 根据电话号码删除用户
     * @param iphoneNumber
     * @return
     */
    Result deleteUserByUid(String iphoneNumber);

    boolean isAdmin();
}
